import request from '@/utils/request'

export function doUploadBase64(data) {
  return request({
    url: '/public/uploadBase64',
    method: 'post',
    data,
  })
}

export function doUploadBase64Pdf(data) {
  return request({
    url: '/public/uploadBase64Pdf',
    method: 'post',
    data,
  })
}

export function addEmptyResource(param) {
  return request({
    url: '/public/addEmptyResource',
    method: 'get',
    param,
  })
}

export function getBase64FromUrl(data) {
  return request({
    url: '/public/getBase64FromUrl',
    method: 'post',
    data,
  })
}

export function getVertifyCode() {
  return request({
    url: '/public/getVertifyCode',
    method: 'get',
  })
}
